home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++,comp.os.ms-windows.programmer.win32
- Path: netcom.com!dimitri
- From: dimitri@netcom.com (Dimitri I. Rakitine)
- Subject: Re: VC++ 4.0 memory allocation slower than in 2.x!!!
- Message-ID: <dimitriDp7p8y.375@netcom.com>
- Followup-To: comp.lang.c++,comp.os.ms-windows.programmer.win32
- Organization: NETCOM On-line Communication Services (408 261-4700 guest)
- X-Newsreader: TIN [version 1.2 PL1]
- References: <alanDozpsy.Kn6@netcom.com> <315C4DA0.30C@Bentley.com> <316049E7.739D@sdt.com> <316052FB.2014@Colorado.Edu>
- Date: Tue, 2 Apr 1996 01:53:22 GMT
- Sender: dimitri@netcom11.netcom.com
-
- Edmond (underwoe@Colorado.Edu) wrote:
-
- : Check out Jeffrey Richter's Advanced Windows programming. I think it's
- : somewhat better than the old, outdated, Borland guide to poor Win32
- : programming.
-
- ????
-
- : HeapAlloc
- : defaults to VirtualAlloc when you have run out of physical memory). Why
- : would different threads be allocating/removing the same block of memory
- : anyway. That would pose synchronization problems that would be sure to
- : cost your application a lot of unnecessary time wasting. I would simply
- : use the VirtualAlloc routine (with some inherent calls to _heapmin()
- : here and there) giving the job of allocating and deallocating to the
- : main application thread and using the HeapDestroy(GetProcessHeap()...)
- : upon program removal. I think one would have safer, faster, memory
- : allocation routines this way. =
-
- ?????????????
-
- : email: underwoe@Colorado.Edu
- ^^^^
-
- Oh, I see ;-)
-
-